//
//  CaogaologViewCell.m
//  YiqiMobile
//
//  Created by henry on 13-4-21.
//  Copyright (c) 2013年 henry. All rights reserved.
//

#import "CaogaologViewCell.h"
#import "Config.h"
#import "Utility.h"

@implementation CaogaologViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle=UITableViewCellSelectionStyleNone;
        self.logo=[[EMAsyncImageView alloc] initWithFrame:CGRectMake(10, 12, 40, 40)];
        [self addSubview:self.logo];
        
        self.nickName=[Utility detailTextLabel:CGRectMake(60, 20, 240, 17)andFontSize:15.0f];
        self.nickName.textColor=[UIColor blackColor];
        [self addSubview:self.nickName];

        
        self.detalContent=[Utility detailTextLabel:CGRectMake(60, 40, 240, 14) andFontSize:8.0f];
        self.detalContent.textColor=UIColorFromRGB(0x717171);
        [self addSubview:self.detalContent];
        
        self.content=[Utility detailTextLabel:CGRectZero andFontSize:15.0f];
        self.content.textColor=[UIColor blackColor];
        [self addSubview:self.content];
        
        self.detalContent2=[Utility detailTextLabel:CGRectZero andFontSize:8.0f];
        self.detalContent2.textColor=UIColorFromRGB(0x717171);
        self.detalContent2.textAlignment=NSTextAlignmentRight;
        [self addSubview:self.detalContent2];
        
        self.yuyinButton=[Utility  customButton:self action:@selector(yuyinButtonAction:) normalImage:@"yuyinButton.png" lightedImage:@"yuyinButton.png" frame:CGRectZero title:nil tag:323];
        [self addSubview:self.yuyinButton];
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void) yuyinButtonAction:(UIButton*) sender{
    
    
}

@end
